package com.icss.beans;
/**
 * @author 廖鹏
 * @version 创建时间：2010-3-16 上午09:22:44
 * 类说明 分页类
 */
public class Pageable {
	
	private int totalPage;  //返回总页数
    private int pageSize;   //每页多少条记录
    private int pageIndex;  //指定当前为第几页	
    private int totalRecord=0;//总记录
    
    public Pageable(){
    	
    }
    public int first(){
    	return pageIndex=1;
    }
    public int last(){
    	return totalPage;
    }
	public int getPageIndex() {
		return pageIndex;
	}
	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex==0 ? 1 : pageIndex;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getTotalRecord() {
		return totalRecord;
	}
	public void setTotalRecord(int totalRecord) {
		this.totalRecord = totalRecord;
	}
        
}
